-
Notifications
You must be signed in to change notification settings - Fork 3.2k
chore: export search funcs #167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR exports several GitHub search and resource functions to the public interface by renaming them from unexported (lowercase) to exported (PascalCase) versions. The changes update function names and comments throughout the code as well as the corresponding test references to ensure consistency.
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/github/server.go | Renamed resource and tool functions to exported variants. |
| pkg/github/search_test.go | Updated test references for renamed search functions. |
| pkg/github/search.go | Exported search functions by renaming them. |
| pkg/github/repository_resource_test.go | Updated tests with exported resource handler functions. |
| pkg/github/repository_resource.go | Renamed resource functions and their comments to be exported. |
| pkg/github/repositories_test.go | Updated test references for repository functions. |
| pkg/github/repositories.go | Exported repository functions by renaming them. |
| pkg/github/pullrequests_test.go | Updated test references for pull request functions. |
| pkg/github/pullrequests.go | Renamed pull request functions to the exported naming convention. |
| pkg/github/issues_test.go | Updated test references for issue functions. |
| pkg/github/issues.go | Exported issue functions with updated naming and comments. |
| pkg/github/code_scanning_test.go | Updated test references for code scanning functions. |
| pkg/github/code_scanning.go | Renamed code scanning functions to be exported. |
juruen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
7ec5938 to
f2bbc19
Compare
The secret provided via argument (`-e` flag) [1] was losing the value before listing the tools. This caused failures to connect to the MCP server. The strategy now is to replace the secret value only when encoding the object to generate the template. There was also a missing `--load` flag when executing `docker buildx build` to correctly load the image into the memory. [1] https://github.com/rafaeljusto/mcp-registry/blob/17fdb6eb0a4b47d4ac1a33535554a6fa7e2b2dd3/cmd/create/main.go#L177-L181
Export search funcs to public interface.